import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Login from '@/page/login/login'
import Register from 'page/register/register'
import My from 'page/my/my'
import ForgetPwd from 'page/forgetPwd/forgetPwd'
import TabBarBottom from '@/base/tabBarBottom/tabBarBottom'
import Community from '@/page/community/community'
import IndexPage from '@/page/index/index'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/login',
      name: 'Login',
      component: Login
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/my',
      name: 'My',
      component: My
    },
    {
      path: '/forgetPwd',
      name: 'ForgetPwd',
      component: ForgetPwd
    },
    {
      path: '/tabBarBottom',
      name: 'TabBarBottom',
      component: TabBarBottom
    },
    {
      path: '/community',
      name: 'Community',
      component: Community
    },
    {
      path: '/index',
      name: 'IndexPage',
      component: IndexPage
    }
  ]
})
